package com.easyaop.test.core.around.api;

import com.easyaop.api.around.Call;
import com.easyaop.api.join.JoinPoint;

public class BeanGen {
    private String name;

    public Object a(String args1) throws Throwable {
        JoinPoint joinPoint = null;
        //new JoinPoint();
        Object[] args = {args1};

        Object result = new FirstAround().around(this, args, joinPoint, new Call() {
            @Override
            public Object call() {
                return Around_a.run(BeanGen.this, args);
            }
        });
        return result;
    }

    private static class Around_a {
        static Object run(BeanGen the, Object arg1) {
            System.out.println("a");
            System.out.println(the.name);
            System.out.println(arg1);
            return arg1 + "1";
        }
    }
}
